package com.tobeface.sns.domain.life;

import com.kissme.core.domain.AbstractDomain;
import com.tobeface.sns.domain.User;

/**
 * 
 * @author loudyn
 * 
 */
public class LifeThinking extends AbstractDomain {

	private static final long serialVersionUID = 1L;

	private User user;
	private LifePrivacyScope privacyScope = new LifePrivacyScope();

	private String title;
	private String content;
	private String tags;

	private long createTime;

	public LifeThinking() {
		this.createTime = System.currentTimeMillis();
	}

	public User getUser() {
		return user;
	}

	public void setUser(User user) {
		this.user = user;
	}

	public LifePrivacyScope getPrivacyScope() {
		return privacyScope;
	}

	public String getTitle() {
		return title;
	}

	public void setTitle(String title) {
		this.title = title;
	}

	public String getContent() {
		return content;
	}

	public void setContent(String content) {
		this.content = content;
	}

	public String getTags() {
		return tags;
	}

	public void setTags(String tags) {
		this.tags = tags;
	}

	public LifeThinking everybodyCanView() {
		privacyScope.everybodyCanView();
		return this;
	}

	public LifeThinking myFriendsCanView() {
		privacyScope.myFirendsCanView();
		return this;
	}

	public LifeThinking myselfCanView() {
		privacyScope.myselfCanView();
		return this;
	}

	public LifeThinking someFriendCanView() {
		privacyScope.someFriendCanView();
		return this;
	}

	public long getCreateTime() {
		return createTime;
	}

	protected LifeThinking setCreateTime(long createTime) {
		this.createTime = createTime;
		return this;
	}

}
